package po;

import java.util.Date;

public class Student {
	private String name;
	private long studentId;
	private Date birthday; 
	private String phoneNumber;
	private String email;
	private String native_place;
	private String address;
	private Room room;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public long getStudentId() {
		return studentId;
	}
	public void setStudentId(Long studentId) {
		this.studentId = studentId;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getNative_place() {
		return native_place;
	}
	public void setNative_place(String native_place) {
		this.native_place = native_place;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Room getRoom() {
		return room;
	}
	public void setRoom(Room room) {
		this.room = room;
	}
	@Override
	public String toString() {
		String str = "姓名："+name+";学号："+studentId+";宿舍："+room.getRoom_name()+";生日："+birthday+";手机号码："+phoneNumber+";邮箱："+email+";住址："+address+";老家：" +native_place;
		return str;
	}
	public Student(String name, long studentId, Date birthday, String phoneNumber, String email, String native_place,
			String address, Room room) {
		super();
		this.name = name;
		this.studentId = studentId;
		this.birthday = birthday;
		this.phoneNumber = phoneNumber;
		this.email = email;
		this.native_place = native_place;
		this.address = address;
		this.room = room;
	}
   public Student() {
	   super();
   }
}
